package com.cocostudio.erpapp;

import com.cocostudio.erpapp.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager.LayoutParams;

public class SplashActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        super.onCreate(savedInstanceState);
        getWindow().addFlags(LayoutParams.FLAG_FULLSCREEN);

        setContentView(R.layout.activity_splash);
        new Thread() {
            @Override
            public void run() {
                try {
                    sleep(2000);
                } catch (InterruptedException e) {
                }
                startActivity(new Intent(SplashActivity.this, RegLoginActivity.class));
              //startActivity(new Intent(SplashActivity.this, TestActivity.class));
                  
                finish();
            }
        }.start();
    }
}
